﻿using System;
using System.Collections.Generic;
using System.Text;
using Prism.Mvvm;
using Prism.Commands;
using Prism.Modularity;

namespace PassingParameters.ViewModels
{
    public class MainWindonwViewModel:BindableBase
    {
        private IModuleManager _moduleManager;
        public MainWindonwViewModel(IModuleManager moduleManager)
        {
            _moduleManager = moduleManager;
            LoadModuleCmd = new DelegateCommand(() =>
              {
                  _moduleManager.LoadModule("ModuleA");
              });
        }
        public DelegateCommand LoadModuleCmd { get; private set; }

    }
}
